﻿///////////////////////////////////////////////////////////////
// This is generated code. If you modify this code, be aware
// of the fact that when you re-generate the code, your changes
// are lost. If you want to keep your changes, make this file read-only
// when you have finished your changes, however it is recommended that
// you inherit from this class to extend the functionality of this generated
// class or you modify / extend the templates used to generate this code.
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 1.0.2005.1
// Code is generated on: Friday, March 07, 2008 3:18:12 PM
// Code is generated using templates: C# template set for SqlServer (1.0.2005.1)
// Templates vendor: Solutions Design.
// Templates version: 1.0.2005.1.111705
//////////////////////////////////////////////////////////////
using System;
using System.Data;

using RPSDAL;
using RPSDAL.HelperClasses;

using SD.LLBLGen.Pro.ORMSupportClasses;

namespace RPSDAL.FactoryClasses
{
	/// <summary>
	/// Factory class for IEntityField instances, used in IEntityFields instances.
	/// </summary>
	public partial class EntityFieldFactory
	{
		/// <summary>
		/// Private CTor, no instantiation possible.
		/// </summary>
		private EntityFieldFactory()
		{
		}

	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the AvailableToContactTypeEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(AvailableToContactTypeFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case AvailableToContactTypeFieldIndex.AvailableToContactTypeId:
					fieldToReturn = new EntityField("AvailableToContactTypeId", typeof(System.Int32), "AvailableToContactTypeEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "AvailableToContactType", "AvailableToContactTypeId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case AvailableToContactTypeFieldIndex.ContactPageFieldId:
					fieldToReturn = new EntityField("ContactPageFieldId", typeof(System.Int32), "AvailableToContactTypeEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "AvailableToContactType", "ContactPageFieldId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case AvailableToContactTypeFieldIndex.ContactTypeId:
					fieldToReturn = new EntityField("ContactTypeId", typeof(System.Int32), "AvailableToContactTypeEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "AvailableToContactType", "ContactTypeId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the BusinessRuleEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(BusinessRuleFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case BusinessRuleFieldIndex.BusinessRuleId:
					fieldToReturn = new EntityField("BusinessRuleId", typeof(System.Int32), "BusinessRuleEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "BusinessRule", "BusinessRuleId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case BusinessRuleFieldIndex.ContactGroupId:
					fieldToReturn = new EntityField("ContactGroupId", typeof(System.Int32), "BusinessRuleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "BusinessRule", "ContactGroupId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case BusinessRuleFieldIndex.TemplateId:
					fieldToReturn = new EntityField("TemplateId", typeof(System.Int32), "BusinessRuleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "BusinessRule", "TemplateId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case BusinessRuleFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "BusinessRuleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "BusinessRule", "Name", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case BusinessRuleFieldIndex.Description:
					fieldToReturn = new EntityField("Description", typeof(System.String), "BusinessRuleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "BusinessRule", "Description", true, (int)SqlDbType.Text, 2147483647, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case BusinessRuleFieldIndex.RuleType:
					fieldToReturn = new EntityField("RuleType", typeof(System.Int32), "BusinessRuleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "BusinessRule", "RuleType", false, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case BusinessRuleFieldIndex.Active:
					fieldToReturn = new EntityField("Active", typeof(System.Boolean), "BusinessRuleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "BusinessRule", "Active", false, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case BusinessRuleFieldIndex.NoDaysFromInitialContact:
					fieldToReturn = new EntityField("NoDaysFromInitialContact", typeof(System.Int32), "BusinessRuleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "BusinessRule", "NoDaysFromInitialContact", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case BusinessRuleFieldIndex.From:
					fieldToReturn = new EntityField("From", typeof(System.Int32), "BusinessRuleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "BusinessRule", "From", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case BusinessRuleFieldIndex.To:
					fieldToReturn = new EntityField("To", typeof(System.Int32), "BusinessRuleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "BusinessRule", "To", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case BusinessRuleFieldIndex.CallReason:
					fieldToReturn = new EntityField("CallReason", typeof(System.String), "BusinessRuleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "BusinessRule", "CallReason", true, (int)SqlDbType.Text, 2147483647, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case BusinessRuleFieldIndex.EmailSubject:
					fieldToReturn = new EntityField("EmailSubject", typeof(System.String), "BusinessRuleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "BusinessRule", "EmailSubject", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the BusinessRuleMailedContactEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(BusinessRuleMailedContactFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case BusinessRuleMailedContactFieldIndex.BusinessRuleMailedContactId:
					fieldToReturn = new EntityField("BusinessRuleMailedContactId", typeof(System.Int32), "BusinessRuleMailedContactEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "BusinessRuleMailedContact", "BusinessRuleMailedContactId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case BusinessRuleMailedContactFieldIndex.BusinesRuleId:
					fieldToReturn = new EntityField("BusinesRuleId", typeof(System.Int32), "BusinessRuleMailedContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "BusinessRuleMailedContact", "BusinesRuleId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case BusinessRuleMailedContactFieldIndex.ContactId:
					fieldToReturn = new EntityField("ContactId", typeof(System.Int32), "BusinessRuleMailedContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "BusinessRuleMailedContact", "ContactId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the CallEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(CallFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case CallFieldIndex.CallId:
					fieldToReturn = new EntityField("CallId", typeof(System.Int32), "CallEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Call", "CallId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case CallFieldIndex.ContactId:
					fieldToReturn = new EntityField("ContactId", typeof(System.Int32), "CallEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Call", "ContactId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case CallFieldIndex.UserId:
					fieldToReturn = new EntityField("UserId", typeof(System.Int32), "CallEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Call", "UserId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case CallFieldIndex.BusinessRuleId:
					fieldToReturn = new EntityField("BusinessRuleId", typeof(System.Int32), "CallEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Call", "BusinessRuleId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case CallFieldIndex.Done:
					fieldToReturn = new EntityField("Done", typeof(System.Boolean), "CallEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Call", "Done", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case CallFieldIndex.UserInformed:
					fieldToReturn = new EntityField("UserInformed", typeof(System.Boolean), "CallEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Call", "UserInformed", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the CallFinishedDropdownFieldValueEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(CallFinishedDropdownFieldValueFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case CallFinishedDropdownFieldValueFieldIndex.CallFinishedDropdownFieldValueId:
					fieldToReturn = new EntityField("CallFinishedDropdownFieldValueId", typeof(System.Int32), "CallFinishedDropdownFieldValueEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "CallFinishedDropdownFieldValue", "CallFinishedDropdownFieldValueId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case CallFinishedDropdownFieldValueFieldIndex.CallPageFinishedFieldId:
					fieldToReturn = new EntityField("CallPageFinishedFieldId", typeof(System.Int32), "CallFinishedDropdownFieldValueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "CallFinishedDropdownFieldValue", "CallPageFinishedFieldId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case CallFinishedDropdownFieldValueFieldIndex.Value:
					fieldToReturn = new EntityField("Value", typeof(System.String), "CallFinishedDropdownFieldValueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "CallFinishedDropdownFieldValue", "Value", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the CallFinishedPageFieldEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(CallFinishedPageFieldFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case CallFinishedPageFieldFieldIndex.CallPageFinishedFieldId:
					fieldToReturn = new EntityField("CallPageFinishedFieldId", typeof(System.Int32), "CallFinishedPageFieldEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "CallFinishedPageField", "CallPageFinishedFieldId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case CallFinishedPageFieldFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "CallFinishedPageFieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "CallFinishedPageField", "Name", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case CallFinishedPageFieldFieldIndex.Type:
					fieldToReturn = new EntityField("Type", typeof(System.Int32), "CallFinishedPageFieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "CallFinishedPageField", "Type", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case CallFinishedPageFieldFieldIndex.OrderIndex:
					fieldToReturn = new EntityField("OrderIndex", typeof(System.Int32), "CallFinishedPageFieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "CallFinishedPageField", "OrderIndex", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the CallFinishedValueEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(CallFinishedValueFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case CallFinishedValueFieldIndex.CallFinishedValueId:
					fieldToReturn = new EntityField("CallFinishedValueId", typeof(System.Int32), "CallFinishedValueEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "CallFinishedValue", "CallFinishedValueId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case CallFinishedValueFieldIndex.CallId:
					fieldToReturn = new EntityField("CallId", typeof(System.Int32), "CallFinishedValueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "CallFinishedValue", "CallId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case CallFinishedValueFieldIndex.CallPageFinishedFieldId:
					fieldToReturn = new EntityField("CallPageFinishedFieldId", typeof(System.Int32), "CallFinishedValueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "CallFinishedValue", "CallPageFinishedFieldId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case CallFinishedValueFieldIndex.FieldValue:
					fieldToReturn = new EntityField("FieldValue", typeof(System.String), "CallFinishedValueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "CallFinishedValue", "FieldValue", true, (int)SqlDbType.Text, 2147483647, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the ContactEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(ContactFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case ContactFieldIndex.ContactId:
					fieldToReturn = new EntityField("ContactId", typeof(System.Int32), "ContactEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Contact", "ContactId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactFieldIndex.ContactTypeId:
					fieldToReturn = new EntityField("ContactTypeId", typeof(System.Int32), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Contact", "ContactTypeId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Contact", "Name", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFieldIndex.EmailAddress:
					fieldToReturn = new EntityField("EmailAddress", typeof(System.String), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Contact", "EmailAddress", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFieldIndex.MailAddress:
					fieldToReturn = new EntityField("MailAddress", typeof(System.String), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Contact", "MailAddress", true, (int)SqlDbType.Text, 2147483647, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFieldIndex.MailState:
					fieldToReturn = new EntityField("MailState", typeof(System.String), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Contact", "MailState", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFieldIndex.MailCity:
					fieldToReturn = new EntityField("MailCity", typeof(System.String), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Contact", "MailCity", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFieldIndex.MailZip:
					fieldToReturn = new EntityField("MailZip", typeof(System.String), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Contact", "MailZip", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFieldIndex.MailCountry:
					fieldToReturn = new EntityField("MailCountry", typeof(System.String), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Contact", "MailCountry", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFieldIndex.Phone:
					fieldToReturn = new EntityField("Phone", typeof(System.String), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Contact", "Phone", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFieldIndex.MobilePhone:
					fieldToReturn = new EntityField("MobilePhone", typeof(System.String), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Contact", "MobilePhone", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFieldIndex.Fax:
					fieldToReturn = new EntityField("Fax", typeof(System.String), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Contact", "Fax", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFieldIndex.ContactVisitDate:
					fieldToReturn = new EntityField("ContactVisitDate", typeof(System.DateTime), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "Contact", "ContactVisitDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
				case ContactFieldIndex.Active:
					fieldToReturn = new EntityField("Active", typeof(System.Boolean), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Contact", "Active", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case ContactFieldIndex.UserId:
					fieldToReturn = new EntityField("UserId", typeof(System.Int32), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Contact", "UserId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactFieldIndex.SendNewsletter:
					fieldToReturn = new EntityField("SendNewsletter", typeof(System.Boolean), "ContactEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Contact", "SendNewsletter", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the ContactFieldEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(ContactFieldFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case ContactFieldFieldIndex.ContactFieldId:
					fieldToReturn = new EntityField("ContactFieldId", typeof(System.Int32), "ContactFieldEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactField", "ContactFieldId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactFieldFieldIndex.ContactId:
					fieldToReturn = new EntityField("ContactId", typeof(System.Int32), "ContactFieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactField", "ContactId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactFieldFieldIndex.ContactPageFieldId:
					fieldToReturn = new EntityField("ContactPageFieldId", typeof(System.Int32), "ContactFieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactField", "ContactPageFieldId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactFieldFieldIndex.FieldValue:
					fieldToReturn = new EntityField("FieldValue", typeof(System.String), "ContactFieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "ContactField", "FieldValue", true, (int)SqlDbType.Text, 2147483647, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the ContactFileEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(ContactFileFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case ContactFileFieldIndex.ContactFileId:
					fieldToReturn = new EntityField("ContactFileId", typeof(System.Int32), "ContactFileEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactFile", "ContactFileId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactFileFieldIndex.ContactId:
					fieldToReturn = new EntityField("ContactId", typeof(System.Int32), "ContactFileEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactFile", "ContactId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactFileFieldIndex.File:
					fieldToReturn = new EntityField("File", typeof(System.String), "ContactFileEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "ContactFile", "File", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFileFieldIndex.ServerFile:
					fieldToReturn = new EntityField("ServerFile", typeof(System.String), "ContactFileEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "ContactFile", "ServerFile", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactFileFieldIndex.FileUrl:
					fieldToReturn = new EntityField("FileUrl", typeof(System.String), "ContactFileEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "ContactFile", "FileURL", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the ContactGroupEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(ContactGroupFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case ContactGroupFieldIndex.ContactGroupId:
					fieldToReturn = new EntityField("ContactGroupId", typeof(System.Int32), "ContactGroupEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactGroup", "ContactGroupId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactGroupFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "ContactGroupEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "ContactGroup", "Name", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the ContactGroupMemberEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(ContactGroupMemberFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case ContactGroupMemberFieldIndex.ContactGroupMemberId:
					fieldToReturn = new EntityField("ContactGroupMemberId", typeof(System.Int32), "ContactGroupMemberEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactGroupMember", "ContactGroupMemberId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactGroupMemberFieldIndex.ContactGroupId:
					fieldToReturn = new EntityField("ContactGroupId", typeof(System.Int32), "ContactGroupMemberEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactGroupMember", "ContactGroupId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactGroupMemberFieldIndex.ContactId:
					fieldToReturn = new EntityField("ContactId", typeof(System.Int32), "ContactGroupMemberEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactGroupMember", "ContactId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the ContactHistoryEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(ContactHistoryFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case ContactHistoryFieldIndex.ContactHistoryId:
					fieldToReturn = new EntityField("ContactHistoryId", typeof(System.Int32), "ContactHistoryEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactHistory", "ContactHistoryId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactHistoryFieldIndex.ContactId:
					fieldToReturn = new EntityField("ContactId", typeof(System.Int32), "ContactHistoryEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactHistory", "ContactId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactHistoryFieldIndex.Type:
					fieldToReturn = new EntityField("Type", typeof(System.Int32), "ContactHistoryEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactHistory", "Type", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactHistoryFieldIndex.BusinessRuleId:
					fieldToReturn = new EntityField("BusinessRuleId", typeof(System.Int32), "ContactHistoryEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactHistory", "BusinessRuleId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactHistoryFieldIndex.CallId:
					fieldToReturn = new EntityField("CallId", typeof(System.Int32), "ContactHistoryEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactHistory", "CallId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactHistoryFieldIndex.LetterId:
					fieldToReturn = new EntityField("LetterId", typeof(System.Int32), "ContactHistoryEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactHistory", "LetterId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactHistoryFieldIndex.Time:
					fieldToReturn = new EntityField("Time", typeof(System.DateTime), "ContactHistoryEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "ContactHistory", "Time", true, (int)SqlDbType.DateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the ContactPageDropdownFieldValueEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(ContactPageDropdownFieldValueFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case ContactPageDropdownFieldValueFieldIndex.ContactPageDropdownFieldValueId:
					fieldToReturn = new EntityField("ContactPageDropdownFieldValueId", typeof(System.Int32), "ContactPageDropdownFieldValueEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactPageDropdownFieldValue", "ContactPageDropdownFieldValueId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactPageDropdownFieldValueFieldIndex.ContactPageFieldId:
					fieldToReturn = new EntityField("ContactPageFieldId", typeof(System.Int32), "ContactPageDropdownFieldValueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactPageDropdownFieldValue", "ContactPageFieldId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactPageDropdownFieldValueFieldIndex.Value:
					fieldToReturn = new EntityField("Value", typeof(System.String), "ContactPageDropdownFieldValueEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "ContactPageDropdownFieldValue", "Value", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the ContactPageFieldEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(ContactPageFieldFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case ContactPageFieldFieldIndex.ContactPageFieldId:
					fieldToReturn = new EntityField("ContactPageFieldId", typeof(System.Int32), "ContactPageFieldEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactPageField", "ContactPageFieldId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactPageFieldFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "ContactPageFieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "ContactPageField", "Name", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case ContactPageFieldFieldIndex.Type:
					fieldToReturn = new EntityField("Type", typeof(System.Int32), "ContactPageFieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactPageField", "Type", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactPageFieldFieldIndex.OrderIndex:
					fieldToReturn = new EntityField("OrderIndex", typeof(System.Int32), "ContactPageFieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactPageField", "OrderIndex", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactPageFieldFieldIndex.Rows:
					fieldToReturn = new EntityField("Rows", typeof(System.Int32), "ContactPageFieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactPageField", "Rows", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactPageFieldFieldIndex.Columns:
					fieldToReturn = new EntityField("Columns", typeof(System.Int32), "ContactPageFieldEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactPageField", "Columns", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the ContactTypeEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(ContactTypeFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case ContactTypeFieldIndex.ContactTypeId:
					fieldToReturn = new EntityField("ContactTypeId", typeof(System.Int32), "ContactTypeEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "ContactType", "ContactTypeId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case ContactTypeFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "ContactTypeEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "ContactType", "Name", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the LetterEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(LetterFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case LetterFieldIndex.LetterId:
					fieldToReturn = new EntityField("LetterId", typeof(System.Int32), "LetterEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Letter", "LetterId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case LetterFieldIndex.BusinessRulesId:
					fieldToReturn = new EntityField("BusinessRulesId", typeof(System.Int32), "LetterEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Letter", "BusinessRulesId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case LetterFieldIndex.ContactId:
					fieldToReturn = new EntityField("ContactId", typeof(System.Int32), "LetterEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Letter", "ContactId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case LetterFieldIndex.LetterBody:
					fieldToReturn = new EntityField("LetterBody", typeof(System.String), "LetterEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Letter", "LetterBody", false, (int)SqlDbType.Text, 2147483647, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case LetterFieldIndex.Sent:
					fieldToReturn = new EntityField("Sent", typeof(System.Boolean), "LetterEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Letter", "Sent", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case LetterFieldIndex.SendDate:
					fieldToReturn = new EntityField("SendDate", typeof(System.DateTime), "LetterEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "Letter", "SendDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
				case LetterFieldIndex.LetterName:
					fieldToReturn = new EntityField("LetterName", typeof(System.String), "LetterEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Letter", "LetterName", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the MailSettingEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(MailSettingFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case MailSettingFieldIndex.MailSetting:
					fieldToReturn = new EntityField("MailSetting", typeof(System.Int32), "MailSettingEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "MailSetting", "MailSetting", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case MailSettingFieldIndex.Email:
					fieldToReturn = new EntityField("Email", typeof(System.String), "MailSettingEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "MailSetting", "Email", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case MailSettingFieldIndex.Footer:
					fieldToReturn = new EntityField("Footer", typeof(System.String), "MailSettingEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "MailSetting", "Footer", true, (int)SqlDbType.VarChar, 8000, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case MailSettingFieldIndex.Address:
					fieldToReturn = new EntityField("Address", typeof(System.String), "MailSettingEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "MailSetting", "Address", true, (int)SqlDbType.VarChar, 8000, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case MailSettingFieldIndex.CompanyName:
					fieldToReturn = new EntityField("CompanyName", typeof(System.String), "MailSettingEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "MailSetting", "CompanyName", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the RoleEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(RoleFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case RoleFieldIndex.RoleId:
					fieldToReturn = new EntityField("RoleId", typeof(System.Int32), "RoleEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Role", "RoleId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case RoleFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Role", "Name", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasViewContact:
					fieldToReturn = new EntityField("HasViewContact", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasViewContact", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasEditContact:
					fieldToReturn = new EntityField("HasEditContact", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasEditContact", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasViewContactGroup:
					fieldToReturn = new EntityField("HasViewContactGroup", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasViewContactGroup", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasEditContactGroup:
					fieldToReturn = new EntityField("HasEditContactGroup", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasEditContactGroup", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasViewTemplate:
					fieldToReturn = new EntityField("HasViewTemplate", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasViewTemplate", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasEditTemplate:
					fieldToReturn = new EntityField("HasEditTemplate", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasEditTemplate", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasViewUsersAvailableToCall:
					fieldToReturn = new EntityField("HasViewUsersAvailableToCall", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasViewUsersAvailableToCall", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasAssignCall:
					fieldToReturn = new EntityField("HasAssignCall", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasAssignCall", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasNumberCallsPerWeek:
					fieldToReturn = new EntityField("HasNumberCallsPerWeek", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasNumberCallsPerWeek", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasViewBusinessRules:
					fieldToReturn = new EntityField("HasViewBusinessRules", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasViewBusinessRules", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasEditBusinessRules:
					fieldToReturn = new EntityField("HasEditBusinessRules", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasEditBusinessRules", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasConfigureCallFinishedPage:
					fieldToReturn = new EntityField("HasConfigureCallFinishedPage", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasConfigureCallFinishedPage", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasSummaryReport:
					fieldToReturn = new EntityField("HasSummaryReport", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasSummaryReport", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasAssignLetters:
					fieldToReturn = new EntityField("HasAssignLetters", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasAssignLetters", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasConfigureContactInterface:
					fieldToReturn = new EntityField("HasConfigureContactInterface", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasConfigureContactInterface", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasEditContactType:
					fieldToReturn = new EntityField("HasEditContactType", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasEditContactType", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasEditUser:
					fieldToReturn = new EntityField("HasEditUser", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasEditUser", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasEditUserGroup:
					fieldToReturn = new EntityField("HasEditUserGroup", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasEditUserGroup", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasUserLog:
					fieldToReturn = new EntityField("HasUserLog", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasUserLog", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasWelcomeTemplate:
					fieldToReturn = new EntityField("HasWelcomeTemplate", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasWelcomeTemplate", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case RoleFieldIndex.HasMailSetting:
					fieldToReturn = new EntityField("HasMailSetting", typeof(System.Boolean), "RoleEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "Role", "HasMailSetting", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the SettingEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(SettingFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case SettingFieldIndex.SettingId:
					fieldToReturn = new EntityField("SettingId", typeof(System.Int32), "SettingEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Setting", "SettingId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case SettingFieldIndex.Url:
					fieldToReturn = new EntityField("Url", typeof(System.String), "SettingEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Setting", "URL", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the TemplateEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(TemplateFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case TemplateFieldIndex.TemplateId:
					fieldToReturn = new EntityField("TemplateId", typeof(System.Int32), "TemplateEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "Template", "TemplateId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case TemplateFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "TemplateEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Template", "Name", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case TemplateFieldIndex.Template:
					fieldToReturn = new EntityField("Template", typeof(System.String), "TemplateEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Template", "Template", false, (int)SqlDbType.Text, 2147483647, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case TemplateFieldIndex.FilePath:
					fieldToReturn = new EntityField("FilePath", typeof(System.String), "TemplateEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Template", "FilePath", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case TemplateFieldIndex.FileUrl:
					fieldToReturn = new EntityField("FileUrl", typeof(System.String), "TemplateEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "Template", "FileURL", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the UserEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(UserFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case UserFieldIndex.UserId:
					fieldToReturn = new EntityField("UserId", typeof(System.Int32), "UserEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "User", "UserId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case UserFieldIndex.RoleId:
					fieldToReturn = new EntityField("RoleId", typeof(System.Int32), "UserEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "User", "RoleId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case UserFieldIndex.FirstName:
					fieldToReturn = new EntityField("FirstName", typeof(System.String), "UserEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "User", "FirstName", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case UserFieldIndex.LastName:
					fieldToReturn = new EntityField("LastName", typeof(System.String), "UserEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "User", "LastName", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case UserFieldIndex.ConnectName:
					fieldToReturn = new EntityField("ConnectName", typeof(System.String), "UserEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "User", "ConnectName", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case UserFieldIndex.Password:
					fieldToReturn = new EntityField("Password", typeof(System.String), "UserEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "User", "Password", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case UserFieldIndex.MaxCallPerWeek:
					fieldToReturn = new EntityField("MaxCallPerWeek", typeof(System.Int32), "UserEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "User", "MaxCallPerWeek", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case UserFieldIndex.Email:
					fieldToReturn = new EntityField("Email", typeof(System.String), "UserEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "User", "Email", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case UserFieldIndex.Active:
					fieldToReturn = new EntityField("Active", typeof(System.Boolean), "UserEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "User", "Active", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
				case UserFieldIndex.ViewAllContacts:
					fieldToReturn = new EntityField("ViewAllContacts", typeof(System.Boolean), "UserEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "User", "ViewAllContacts", true, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the UserLogEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(UserLogFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case UserLogFieldIndex.UserLogId:
					fieldToReturn = new EntityField("UserLogId", typeof(System.Int32), "UserLogEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "UserLog", "UserLogId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case UserLogFieldIndex.UserId:
					fieldToReturn = new EntityField("UserId", typeof(System.Int32), "UserLogEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "UserLog", "UserId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case UserLogFieldIndex.Date:
					fieldToReturn = new EntityField("Date", typeof(System.DateTime), "UserLogEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.DateTime)), @"dbo", "UserLog", "Date", true, (int)SqlDbType.DateTime, 0, 0, 0, false, false, "", false, null, typeof(System.DateTime), (int)fieldIndex);
					break;
				case UserLogFieldIndex.Action:
					fieldToReturn = new EntityField("Action", typeof(System.String), "UserLogEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "UserLog", "Action", true, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the UserResponsibleForPrintingLettersEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(UserResponsibleForPrintingLettersFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case UserResponsibleForPrintingLettersFieldIndex.UserResponsibleForPrintingLetters:
					fieldToReturn = new EntityField("UserResponsibleForPrintingLetters", typeof(System.Int32), "UserResponsibleForPrintingLettersEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "UserResponsibleForPrintingLetters", "UserResponsibleForPrintingLetters", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case UserResponsibleForPrintingLettersFieldIndex.UserId:
					fieldToReturn = new EntityField("UserId", typeof(System.Int32), "UserResponsibleForPrintingLettersEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "UserResponsibleForPrintingLetters", "UserId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the WelcomeTemplateEntity. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(WelcomeTemplateFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case WelcomeTemplateFieldIndex.WelcomeTemplateId:
					fieldToReturn = new EntityField("WelcomeTemplateId", typeof(System.Int32), "WelcomeTemplateEntity", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "WelcomeTemplate", "WelcomeTemplateId", false, (int)SqlDbType.Int, 0, 0, 10, true, true, "SCOPE_IDENTITY()", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case WelcomeTemplateFieldIndex.TemplateId:
					fieldToReturn = new EntityField("TemplateId", typeof(System.Int32), "WelcomeTemplateEntity", false, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "WelcomeTemplate", "TemplateId", true, (int)SqlDbType.Int, 0, 0, 10, false, false, "", true, null, typeof(System.Int32), (int)fieldIndex);
					break;
					
			}
			return fieldToReturn;
		}
	
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the VTemplate TypedView. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(VTemplateFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case VTemplateFieldIndex.ContactId:
					fieldToReturn = new EntityField("ContactId", typeof(System.Int32), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "vTemplate", "ContactId", false, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.ContactGroupId:
					fieldToReturn = new EntityField("ContactGroupId", typeof(System.Int32), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "vTemplate", "ContactGroupId", false, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "Name", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.EmailAddress:
					fieldToReturn = new EntityField("EmailAddress", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "EmailAddress", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.MailAddress:
					fieldToReturn = new EntityField("MailAddress", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "MailAddress", false, (int)SqlDbType.VarChar, 30, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.MailState:
					fieldToReturn = new EntityField("MailState", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "MailState", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.MailCity:
					fieldToReturn = new EntityField("MailCity", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "MailCity", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.MailZip:
					fieldToReturn = new EntityField("MailZip", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "MailZip", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.MailCountry:
					fieldToReturn = new EntityField("MailCountry", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "MailCountry", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.Phone:
					fieldToReturn = new EntityField("Phone", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "Phone", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.MobilePhone:
					fieldToReturn = new EntityField("MobilePhone", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "MobilePhone", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.Fax:
					fieldToReturn = new EntityField("Fax", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "Fax", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.ContactVisitDate:
					fieldToReturn = new EntityField("ContactVisitDate", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "ContactVisitDate", false, (int)SqlDbType.VarChar, 30, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.ContactGroupName:
					fieldToReturn = new EntityField("ContactGroupName", typeof(System.String), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplate", "ContactGroupName", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateFieldIndex.SendNewsletter:
					fieldToReturn = new EntityField("SendNewsletter", typeof(System.Boolean), "VTemplateTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.Boolean)), @"dbo", "vTemplate", "SendNewsletter", false, (int)SqlDbType.Bit, 0, 0, 0, false, false, "", false, null, typeof(System.Boolean), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	
		/// <summary>
		/// Creates a new IEntityField instance for usage in the EntityFields object for the VTemplateDev TypedView. 
		/// Which EntityField is created is specified by fieldIndex
		/// </summary>
		/// <param name="fieldIndex">The field which IEntityField instance should be created</param>
		/// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
		public static IEntityField Create(VTemplateDevFieldIndex fieldIndex)
		{
			IEntityField fieldToReturn = null;
			switch(fieldIndex)
			{
				case VTemplateDevFieldIndex.ContactId:
					fieldToReturn = new EntityField("ContactId", typeof(System.Int32), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "vTemplateDev", "ContactId", false, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.ContactGroupId:
					fieldToReturn = new EntityField("ContactGroupId", typeof(System.Int32), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "vTemplateDev", "ContactGroupId", false, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.Name:
					fieldToReturn = new EntityField("Name", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "Name", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.EmailAddress:
					fieldToReturn = new EntityField("EmailAddress", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "EmailAddress", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.MailAddress:
					fieldToReturn = new EntityField("MailAddress", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "MailAddress", false, (int)SqlDbType.VarChar, 30, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.MailState:
					fieldToReturn = new EntityField("MailState", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "MailState", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.MailCity:
					fieldToReturn = new EntityField("MailCity", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "MailCity", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.MailZip:
					fieldToReturn = new EntityField("MailZip", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "MailZip", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.MailCountry:
					fieldToReturn = new EntityField("MailCountry", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "MailCountry", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.Phone:
					fieldToReturn = new EntityField("Phone", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "Phone", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.MobilePhone:
					fieldToReturn = new EntityField("MobilePhone", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "MobilePhone", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.Fax:
					fieldToReturn = new EntityField("Fax", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "Fax", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.ContactVisitDate:
					fieldToReturn = new EntityField("ContactVisitDate", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "ContactVisitDate", false, (int)SqlDbType.VarChar, 30, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.Sent:
					fieldToReturn = new EntityField("Sent", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "Sent", false, (int)SqlDbType.VarChar, 1, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.ContactGroupName:
					fieldToReturn = new EntityField("ContactGroupName", typeof(System.String), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.String)), @"dbo", "vTemplateDev", "ContactGroupName", false, (int)SqlDbType.VarChar, 255, 0, 0, false, false, "", false, null, typeof(System.String), (int)fieldIndex);
					break;
				case VTemplateDevFieldIndex.BusinessRuleId:
					fieldToReturn = new EntityField("BusinessRuleId", typeof(System.Int32), "VTemplateDevTypedView", true, TypeDefaultValue.GetDefaultValue(typeof(System.Int32)), @"dbo", "vTemplateDev", "BusinessRuleId", false, (int)SqlDbType.Int, 0, 0, 10, false, false, "", false, null, typeof(System.Int32), (int)fieldIndex);
					break;
			}

			return fieldToReturn;
		}
	


		#region Included Code

		#endregion
	}
}
